#ifndef __UNIX_ERRORDEFS_H__
#define __UNIX_ERRORDEFS_H__

#include <errno.h>

#define E_INSUFFICIENT_MEMORY       (-1)
#define E_ERRORNO                   (-2)
#define E_EOF                       (-3)
#define E_BUFFER_OVERFLOWN          (-4)
#define E_INVALID_CHAR_IN_NAME      (-5)
#define E_INVALID_DECL_NAME         (-6)
#define E_INVALID_COMMENT           (-7)
#define E_BAD_TOKEN                 (-8)
#define E_RIGHT_BRACKET_EXPECTED    (-9)
#define E_INVALID_CDATA             (-10)
#define E_SEMICOLON_WANTED          (-11)
#define E_UNDEFINED_ENTITY          (-12)
#define E_UNEXPECTED_EOF            (-13)
#define E_INVALID_AT_TOP_LEVEL      (-14)
#define E_2ND_TOP_LEVEL             (-15)
#define E_UNEXPECTED_END_TAG        (-16)
#define E_UNEXPECTED_TOKEN          (-17)
#define E_UNMATCHED_END_TAG         (-18)
#define E_PI_NOT_CLOSED             (-19)
#define E_2ND_PI                    (-20)

#define E_USER                      (-5000)
#endif  // __UNIX_ERRORDEFS_H__
